package com.spvs.approval.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spvs.approval.domain.ApprovalClassifyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * 审批模板表
 */
@Mapper
@Repository
public interface ApprovalClassifyMapper extends BaseMapper<ApprovalClassifyEntity> {

    ApprovalClassifyEntity selectOneByName(@Param("classifyName") String classifyName);

    ApprovalClassifyEntity selectOneByCode(@Param("classifyCode") String classifyCode);

    Page<ApprovalClassifyEntity> queryPage(@Param("page")Page<ApprovalClassifyEntity> page, @Param("param") Map<String,Object> param);
}
